package com.lin.filegraph.utils.methoddg;

import com.lin.filegraph.utils.parser.node.JMethodNode;

/**
 * @description:
 * @author: linhuaixu
 * @time: 2023/5/18 10:40
 */
public class MethodEdge {

    private JMethodNode preMethod;
    private JMethodNode postMethod;

    public MethodEdge(JMethodNode preMethod, JMethodNode postMethod) {
        super();
        this.preMethod = preMethod;
        this.postMethod = postMethod;
    }

    public JMethodNode getPreMethod() {
        return preMethod;
    }

    public JMethodNode getPostMethod() {
        return postMethod;
    }

    @Override
    public String toString() {
        return "[MethodEdge]" + "\n" + preMethod.getMethodSignature() + "\n" + postMethod.getMethodSignature();

    }

}
